<div class="table-responsive">
    <table class="table table-striped b-t b-light">
        <thead>
        <tr>
            <!--<th width="20">-->
                <!--<label class="i-checks m-b-none">-->
                    <!--<input type="hidden" ng-model="orders.status" ng-init="orders.status = 5">-->
                    <!--<input type="checkbox" ng-checked="isCheckedAll()" ng-click="checkAll($event)"><i></i>-->
                <!--</label>-->
            <!--</th>-->
            <th>所属门店</th>
            <th>店铺订单编号</th>
            <th>用户信息</th>
            <th width="170">订单金额</th>
            <th>优惠金额</th>
            <th width="90">支付方式</th>
            <th>操作时间</th>
            <th width="140" class="text-center">操作</th>
        </tr>
        </thead>
        <tbody>
            <tr ng-repeat="o in list">
                <!--<td><label class="i-checks m-b-none"><input type="checkbox" name="post[]" ng-checked="isChecked(o)" ng-click="updateSelection($event,o)"><i></i></label></td>-->
                <td>
                    {{o.shopName}}
                    <i class="m-l-xs fa fa-question-circle text-success pos-rlt h6" popover-placement="top"
                       popover="订单备注：{{o.remark}}" popover-trigger="mouseenter" ng-if="o.remark != null && o.remark!=''"></i>
                </td>
                <td>{{o.shopOrderNumber}}</td>
                <td ng-if="o.type == 0">
                    <span>收货人：{{o.name}}</span></br>
                    <span>手机号码：{{o.userMobilePhone}}</span>
                </td>
                <td ng-if="o.type == 5 || o.type==4">
                    <span>到店人：{{o.consumeName}}</span></br>
                    <span>手机号码：{{o.consumePhone}}</span>
                </td>
                <td>订单金额：{{o.realMoney | number:2}} 元<br>
                    <span ng-if="o.type == 2">运费：{{o.postage | number:2}} 元<br></span>
                    <span ng-if="o.type == 1">配送费：{{o.postage | number:2}} 元<br></span>
                    <span>支付金额：{{o.payMoney | number:2}} 元<br></span>
                    <span>差价：{{o.priceDifference | number:2}} 元</span>
                </td>
                <td>
                    <span>优惠券：{{o.couponsMoney | number:2}}  元<br></span>
                    <span ng-if="o.privilegeMoney!=null">会员卡：{{o.privilegeMoney | number:2}} 元<br></span>
                    <span ng-if="o.privilegeMoney==null">会员卡：0.00 元<br></span>
                    <span>乐积分：{{o.deductionMoney | number:2}} 元</span>
                </td>
                <td>
                    <span class="badge bg-success" ng-if="o.payWay == 0">微信</span>
                    <span class="badge bg-danger" ng-if="o.payWay == 1">现金分</span>
                    <span class="badge bg-warning" ng-if="o.payWay == 2">收益分</span>
                    <span class="badge bg-info" ng-if="o.payWay == 3">会员卡</span>
                </td>
                <td>
                    <span ng-if="o.createdTime != null">下单时间：{{o.createdTime}}<br></span>
                    <span ng-if="o.payTime != null">付款时间：{{o.payTime}}<br></span>
                    <span ng-if="o.useTime != null">核销时间：{{o.useTime}}<br></span>
                    <span ng-if="o.completeTime != null">完成时间：{{o.completeTime}}</span>
                </td>
                <td class="t-btns text-left">
                    <a class="btn btn-sm btn-success" ui-sref="app.ordersGoodsView({id:o.id})" target="_blank">查看</a>
                    <!--<button class="btn btn-sm btn-info">打印小票</button>-->
                    <div class="btn-group dropdown" dropdown="" ng-if="o.type == 4">
                        <button class="btn btn-sm btn-default" dropdown-toggle=""
                                aria-haspopup="true" aria-expanded="false">更多 <span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu">
                            <li><a href="" ng-if="o.type == 4" ng-click="checkReserve(o.id)">查看预约信息</a></li>
                            <li><a href="" ng-click="updateStatus(o.id,6)">交易完成</a></li>
                            <!--<li><a href="" ng-click="updateStatus(o.id,9)">退款</a></li>-->
                        </ul>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
    <div ng-if="list.length<=0 && !app.loading" class="padder-v text-center">
        <span class="h6">~未搜索到任何数据~</span>
    </div>
    <div>
        <circle-loading ng-if="app.loading"></circle-loading>
    </div>
</div>
<footer class="panel-footer">
    <div class="row">
        <div class="col-sm-4 hidden-xs">
            <!--<div class="pull-left">-->
                <!--<button class="btn btn-sm btn-info">批量打印小票</button>-->
            <!--</div>-->
        </div>
        <div class="col-sm-4 text-center">
            <small class="text-muted inline m-t-sm m-b-sm">显示第 {{startRow}} 至 {{endRow}} 项结果，共 {{totalItems}} 项</small>
        </div>
        <div class="col-sm-4 text-right text-center-xs">
            <pagination boundary-links="true" total-items="totalItems" ng-model="page.currentPage"
                        ng-change="replacePage()" max-size="{{maxPageRow}}" class="pagination-sm m-t-none m-b"
                        previous-text="上一页" next-text="下一页"
                        first-text="首页" last-text="尾页"></pagination>
        </div>
    </div>
</footer>